<?php
if (!defined('IN_SITE')){ die('Hacking attempt!'); }
interface HomePageStaticInter{
	### 功能：生成静态首页 #####
    function staticHomeIndex();
}
class homepage implements HomePageStaticInter{
	function staticHomeIndex(){
		global $outvar;
		c_create::createClass('adv');
		$adv = new adv();
		c_create::createClass('news');
		$news = new news();
		
		$outvar[feat001] = $adv->getRecordOfOneType(4,5);
		$outvar[feat002] = $adv->getRecordOfOneType(5,1);
		$outvar[feat003] = $adv->getRecordOfOneType(6,6);
		$outvar[feat004] = $adv->getRecordOfOneType(7,9);
		$outvar[feat005] = $adv->getRecordOfOneType(8,1);
		$outvar[feat006] = $adv->getRecordOfOneType(9,4);
		$outvar[feat007] = $adv->getRecordOfOneType(10,10);
		$outvar[feat008] = $adv->getRecordOfOneType(11,6);
		$outvar[feat009] = $adv->getRecordOfOneType(12,1);
		$outvar[feat010] = $adv->getRecordOfOneType(13,5);
		$outvar[feat011] = $adv->getRecordOfOneType(14,1);
		$outvar[feat012] = $adv->getRecordOfOneType(15,5);
		$outvar[feat013] = $adv->getRecordOfOneType(20,2);
		$outvar[feat014] = $adv->getRecordOfOneType(21,1);
		$outvar[feat015] = $adv->getRecordOfOneType(22,4);
		$outvar[feat016] = $adv->getRecordOfOneType(23,1);
		$outvar[feat017] = $adv->getRecordOfOneType(24,3);
		$outvar[feat018] = $adv->getRecordOfOneType(25,1);
		$outvar[feat019] = $adv->getRecordOfOneType(26,3);
		
		$outvar[adv001] = $adv->getRecordOfOneType(1,1);
		$outvar[adv002] = $adv->getRecordOfOneType(2,1);
		$outvar[adv003] = $adv->getRecordOfOneType(17,1);
		$outvar[adv004] = $adv->getRecordOfOneType(18,1);
		$outvar[adv005] = $adv->getRecordOfOneType(27,1);
		$outvar[adv006] = $adv->getRecordOfOneType(3,1);
		$outvar[adv007] = $adv->getRecordOfOneType(16,1);
		$outvar[adv008] = $adv->getRecordOfOneType(19,1);
		
		$outvar[last001] = $news->getRecordOfOneType(1,0,5);
		$outvar[last002] = $news->getRecordOfOneType(6,0,5);
		$outvar[last003] = $news->getRecordOfOneType(27,0,10);
		$outvar[last004] = $news->getRecordOfOneType(28,0,5);
		$outvar[last005] = $news->getRecordOfOneType(9,0,5);
		$outvar[last006] = $news->getRecordOfOneType(7,0,5);
		
		
		$outvar[includeT] = 'index';
		$outfile = SITE_ROOT.'index.html';
		staticFile($outfile);
	}
}

?>
